var URLconfig = require('../../config/urlconfig');
export const baseUrl = URLconfig.getAPI();
import axios from "axios"

//轮播图接口
export const getBanner = (params) => axios.get(baseUrl + 'banner/listBanner', params)
    //登录接口
export const login = (params) => axios.post(baseUrl + 'user/login', params)
    //注册接口
export const register = (params) => axios.post(baseUrl + 'user/register', params)
    //国籍接口
export const countryList = (params) => axios.get(baseUrl + 'country/list', params)
    //短信验证接口
export const getVerificationCode = (params) => axios.get(baseUrl + 'user/getVerificationCode', params)
    //消息列表接口
export const listMessage = (params) => axios.get(baseUrl + 'message/listMessage', params)
    //首页分币计划接口
export const coinPlanShow = (params) => axios.get(baseUrl + 'coinPlan/coinPlanShow', params)
    //分币计划接口
export const coinPlan = (params) => axios.get(baseUrl + 'coinPlan/list', params)
    //币种分类接口
export const coinType = (params) => axios.get(baseUrl + 'virtualWallet/coinType', params)
    //身份验证接口
export const idCard = (params) => axios.post(baseUrl + 'idCard/add', params)
    //上传多个文件接口
export const batchUploadFile = (params) => axios.post(baseUrl + 'batchUploadFile', params)
    //上传单个文件接口
export const uploadFile = (params) => axios.post(baseUrl + 'uploadFile', params)
    //（登录密码/交易密码）修改密码/忘记密码验证接口
export const updatePassword = (params) => axios.post(baseUrl + 'user/updatePassword', params)
    //币种资产
export const coinAssets = (params) => axios.get(baseUrl + 'userVirtualWallet/coinAssets', params)

// 邀请奖励
export const invite = (params) => axios.get(baseUrl + 'user/invite', params)

//我的交易记录
export const recordList = (params) => axios.get(baseUrl + 'userVirtualWalletRecord/list', params)

// 累计收益和待收收益
export const totalIncomeAndWaitIncome = (params) => axios.get(baseUrl + 'userCoinPlan/totalIncomeAndWaitIncome', params)

//用户钱包记录获取月份
export const getMonth = (params) => axios.get(baseUrl + 'userVirtualWalletRecord/getMonth', params)